//
//  Player.h
//  DiceWar
//
//  Created by Xiao  Feng on 19/6/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#ifndef GAME_GAMEPLAY_PALYER_H_
#define GAME_GAMEPLAY_PALYER_H_

#include "cocos2d.h"

enum PlayerType
{
    kRedPlayer,
    kBluePlayer,
    kOrangePlayer,
    kBlackPlayer,
    kInvalidPlayer,
};

enum PlayerCategory
{
    kHuman,
    kRobot,
    kInvalidCategory
};

class Player : public cocos2d::CCObject
{
public:
    Player(PlayerType type);
    virtual ~Player();
    
public:
    PlayerType getType() const;
    bool isDead() const;
    
    int getNumOccupiedCells() const;
    bool hasCell(int coordinateX, int coordinateY) const;
    
public:
    virtual bool isUserInputEnabled() = 0;
    virtual void startRound() = 0;
    
private:
    PlayerType m_type;
};

#endif //GAME_GAMEPLAY_PALYER_H_
